package zzc.javaWeb.javaWebHomew.dao;

import zzc.javaWeb.javaWebHomew.pojo.LoginBean;
import zzc.javaWeb.javaWebHomew.pojo.PageBean;
import zzc.javaWeb.javaWebHomew.pojo.ResBean;
import zzc.javaWeb.javaWebHomew.pojo.UserBean;

import java.sql.SQLException;
import java.util.List;

public interface homeDao {
    //管理员登录接口
    int loginAdmin(LoginBean user) throws SQLException;
    //登录注册模块接口
    int tologinUser(LoginBean user) throws SQLException;
    //添加学生端登录接口
    int addloginUser(LoginBean user) throws SQLException;
    //分页查询接口
    int findTotalCount() throws SQLException;
    //home插入学生数据
    int addhomePage (UserBean userBean) throws  SQLException;
    List<UserBean> findByPage(PageBean pageBean) throws SQLException;
    //删除操作
    int deleteByID(int id) throws SQLException;
    //更新操作
    int updateHomeByEntity(UserBean userBean)throws SQLException;
    //学生端抢课系统乐观优化锁sql
    int updatexk(int id) throws SQLException;
    //成功抢课后的简单结果集
    int addRes(ResBean resBean) throws SQLException;
    //还票
    int addCs(int th) throws  SQLException;
}
